# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Manufacturers.V1.Model.Grocery do
  @moduledoc """


  ## Attributes

  *   `activeIngredients` (*type:* `String.t`, *default:* `nil`) - Active ingredients.
  *   `alcoholByVolume` (*type:* `float()`, *default:* `nil`) - Alcohol by volume.
  *   `allergens` (*type:* `String.t`, *default:* `nil`) - Allergens.
  *   `derivedNutritionClaim` (*type:* `list(String.t)`, *default:* `nil`) - Derived nutrition claim.
  *   `directions` (*type:* `String.t`, *default:* `nil`) - Directions.
  *   `indications` (*type:* `String.t`, *default:* `nil`) - Indications.
  *   `ingredients` (*type:* `String.t`, *default:* `nil`) - Ingredients.
  *   `nutritionClaim` (*type:* `list(String.t)`, *default:* `nil`) - Nutrition claim.
  *   `storageInstructions` (*type:* `String.t`, *default:* `nil`) - Storage instructions.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :activeIngredients => String.t() | nil,
          :alcoholByVolume => float() | nil,
          :allergens => String.t() | nil,
          :derivedNutritionClaim => list(String.t()) | nil,
          :directions => String.t() | nil,
          :indications => String.t() | nil,
          :ingredients => String.t() | nil,
          :nutritionClaim => list(String.t()) | nil,
          :storageInstructions => String.t() | nil
        }

  field(:activeIngredients)
  field(:alcoholByVolume)
  field(:allergens)
  field(:derivedNutritionClaim, type: :list)
  field(:directions)
  field(:indications)
  field(:ingredients)
  field(:nutritionClaim, type: :list)
  field(:storageInstructions)
end

defimpl Poison.Decoder, for: GoogleApi.Manufacturers.V1.Model.Grocery do
  def decode(value, options) do
    GoogleApi.Manufacturers.V1.Model.Grocery.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Manufacturers.V1.Model.Grocery do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
